//
//  scanViewController.h
//  TryShopping
//
//  Created by LiYinDi on 16/6/3.
//  Copyright © 2016年 RuiBen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>



@protocol scanViewControllerDelegate <NSObject>
@optional
-(void)scanGoodInfoData:(NSString*)codeStr;

@end



@interface scanViewController : UIViewController<AVCaptureMetadataOutputObjectsDelegate,UITextFieldDelegate>
{
    BOOL isDown;
    int num;
    NSString *stringValue;
    
    SystemSoundID sound;//系统声音的id 取值范围为：1000-2000

}

@property(nonatomic) BOOL isReading;
@property(nonatomic,strong) AVCaptureSession *captureSession;
@property(nonatomic,strong) AVCaptureVideoPreviewLayer *videoPreviewLayer;

@property(nonatomic)NSTimer *timer;

@property(nonatomic,strong)NSDictionary *memberDict;
@property(nonatomic,strong)NSString *scanResultStr;
@property(nonatomic,strong)NSString *noCashier;
@property(nonatomic,strong)NSString *theCurrentItemId;
@property(nonatomic,strong)NSString *theCurrentSpecId;
@property(nonatomic,strong)NSString *ySelQty;

@property(nonatomic,strong)NSString *invQty;
@property (weak, nonatomic) IBOutlet UILabel *lineLabel;
//topView
@property (strong, nonatomic) IBOutlet UIImageView *lineImage;


@property (weak, nonatomic) IBOutlet UIView *topView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *backBtn;


@property (strong, nonatomic) IBOutlet UILabel *specNameLabel;

@property (weak, nonatomic) IBOutlet UIImageView *bgImageView;
@property (weak, nonatomic) IBOutlet UIView *scanTopView;
@property (weak, nonatomic) IBOutlet UIView *scanRightView;
@property (weak, nonatomic) IBOutlet UIView *ScanLeftView;
@property (weak, nonatomic) IBOutlet UIView *scanBottomView;


//控制数量的view

@property (weak, nonatomic) IBOutlet UIImageView *lineFrameImage;



@property (retain, nonatomic)NSString*ckvId;
@property (retain, nonatomic)NSString*ckvNo;
@property (retain, nonatomic)NSString*whsName;
@property (retain, nonatomic)NSString*whsId;
@property (retain, nonatomic)NSString*itemTypeName;
@property (retain, nonatomic)NSString*itemTypeCode;

@property(nonatomic,weak) id<scanViewControllerDelegate> delegate;


@end
